<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewCampoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewCampoLabel_nombre}"/>
                    <h:outputText value="#{formularioController.selectedCampo.nombre}" title="#{bundle.ViewCampoTitle_nombre}"/>
                    <h:outputText value="#{bundle.ViewCampoLabel_tipo}"/>
                    <h:outputText value="#{formularioController.selectedCampo.tipo}" title="#{bundle.ViewCampoTitle_tipo}"/>
                    <h:outputText value="#{bundle.ViewCampoLabel_clave}"/>
                    <h:outputText value="#{formularioController.selectedCampo.clave}" title="#{bundle.ViewCampoTitle_clave}"/>
                    <h:outputText value="#{bundle.ViewCampoLabel_obligatorio}"/>
                    <h:outputText value="#{formularioController.selectedCampo.obligatorio}" title="#{bundle.ViewCampoTitle_obligatorio}"/>
                    <h:outputText value="#{bundle.ViewCampoLabel_formulario}"/>
                    <h:outputText value="#{formularioController.selectedCampo.formulario}" title="#{bundle.ViewCampoTitle_formulario}"/>
                </h:panelGrid>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewCampoEditLink}"/>
                <br />
                <br />
                <br />
                <h:commandLink value="#{bundle.Atras}" action="/JSFPages/formulario/Create.xhtml" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
